package com.vehicle.domains.vo.req.sysRole;

import com.vehicle.annotations.EnumValue;
import com.vehicle.enums.ActiveEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
@Schema(description = "修改角色接口参数")
public class UpdateRoleReq {
    @Schema(name = "id", description = "角色id")
    @NotNull(message = "角色id不能为空")
    private Long id;
    @Schema(name = "roleCode", description = "角色编码")
    private String roleCode;
    @Schema(name = "roleName", description = "角色名称")
    private String roleName;
    @Schema(name = "status", description = "角色状态")
    @EnumValue(enumClass = ActiveEnum.class, message = "角色状态参数必须为ACTIVE/INACTIVE")
    private String status;
}
